package syllabus.service;

import java.util.List;
import syllabus.model.Criteria;
import syllabus.model.PSyllabus;

public interface PSyllabusService {
    int countByExample(Criteria example);

    PSyllabus selectByPrimaryKey(Integer id);

    List<PSyllabus> selectByExample(Criteria example);

    int deleteByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(PSyllabus record);

    int updateByPrimaryKey(PSyllabus record);

    int deleteByExample(Criteria example);

    int updateByExampleSelective(PSyllabus record, Criteria example);

    int updateByExample(PSyllabus record, Criteria example);

    int insert(PSyllabus record);

    int insertSelective(PSyllabus record);
    
    /**
     * 合并大纲
     * @param kcdm
     * @param merge_kcdm 被合并课程代码
     * @return
     */
    boolean mergeSyllabus(String kcdm,String merge_kcdm);
    
}